﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WorkStation.Frameworks.EasyBus.Serializable;

namespace WorkStation.Frameworks.EasyBus.Extensions
{
    public static class ObjectExtensions
    {
        public static string ObjectToJson(this object obj) 
        {
            return ServiceContainer.Current.GetInstance<IMessageSerializable>().ObjectToJson(obj);
        }
    }
}
